/*
  @author: 13813
  @date: 2024/11/8 9:25
*/
public class IfElseIfDemo02 {
    public static void main(String[] args) {
          /*
            定义一个月份，输出此月份的天数
         */

        int month = 6;

        if (month == 1) {
            System.out.println("31");
        } else if (month == 2) {
            System.out.println("28");
        } else if (month == 3) {
            System.out.println("31");
        } else if (month == 4) {
            System.out.println("30");
        } else if (month == 5) {
            System.out.println("31");
        } else if (month == 6) {
            System.out.println("30");
        } else if (month == 7) {
            System.out.println("31");
        } else if (month == 8) {
            System.out.println("31");
        } else if (month == 9) {
            System.out.println("30");
        } else if (month == 10) {
            System.out.println("31");
        } else if (month == 11) {
            System.out.println("30");
        } else if (month == 12) {
            System.out.println("31");
        }

        if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) {
            System.out.println("31");
        } else if (month == 4 || month == 6 || month == 9 || month == 11) {
            System.out.println("30");
        } else if (month == 2) {
            System.out.println("28");
        }
        /*
            接收用户输入的用户名密码，转成整数类型，判断用户输入的用户名，密码是否正确，
            如果正确输出，登录成功，否则输出登录失败
         */
    }
}
